<template>
    <div>
        <van-grid :column-num="4">
            <van-grid-item v-for="item in catitems" :icon="item.image_src
" :text="item.name" />
        </van-grid>

        <div v-for="item in floordata">
            <img :src="item.floor_title.image_src" alt="" style="width: 100%;">
            <div v-for="items in item.product_list">
                <img :src="items.image_src" alt="" style="width: 100%;height: 150px;">
            </div>
        </div>
    </div>
</template>

<script setup>
import {ref} from 'vue'
import { catitemsApi,floordataApi } from '@/api/api'
let catitems=ref([])
catitemsApi().then(res=>{
    console.log('导航',res)
    catitems.value=res.data.message
})
let floordata=ref([])
floordataApi().then(res=>{
    console.log('楼层',res)
    floordata.value=res.data.message
})
</script>

<style lang="scss" scoped></style>